class ChangeAppToAppid < ActiveRecord::Migration
  def up
    remove_column :downloads, :app
    add_column :downloads, :app_id, :integer
    remove_column :downloads, :terminal_version
    remove_column :downloads, :app_version
    add_index :downloads, :app_id
  end

  def down
  end
end
